package com.laoda.ikun_food.controller.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import com.laoda.ikun_food.service.UserService;
import com.laoda.ikun_food.entity.User;

@Controller
@RequestMapping("/user")
public class UserHomeController {
    @GetMapping("/UserHome")
    public String UserOrder() {
        return "user/UserHome";
    }

    @GetMapping("/useralt")
    public String UserAlter() {return "user/useralt";}

    @PostMapping("/useralt/saveOrUpdate")
    public String updateuser(User user){
        return "redirect:/user/userHome";
    }
}

